package com.wxzhou.wangzhuan.dto.config;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.math.BigDecimal;

/**
 * 提现全局配置
 */
public class WithdrawTotalLimitDto {

    /**
     * 提现金额
     */
    @NotNull(message = "提现金额不能为空")
    @DecimalMin(value = "0", inclusive = false, message = "提现金额必须大于0")
    private BigDecimal amount = BigDecimal.ZERO;

    /**
     * 每日每人最多次数
     */
    @NotNull(message = "每日每人最多次数不能为空")
    @Min(value = 0, message = "每日每人最多次数不能小于0")
    private Integer dailyLimit = 0;

    /**
     * 该金额总提现次数上限
     */
    @Min(value = 0, message = "每日每人最多次数不能小于0")
    private Integer allCount;

    // Getters and Setters
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getDailyLimit() {
        return dailyLimit;
    }

    public void setDailyLimit(Integer dailyLimit) {
        this.dailyLimit = dailyLimit;
    }

    public Integer getAllCount() {
        return allCount;
    }

    public void setAllCount(Integer allCount) {
        this.allCount = allCount;
    }
}